package com.zretc.kscxmz.entity;

/**
 * @author zengyanjun
 * @date 2020-07-25
 * 评论实体类
 */
public class Comment {
    private Integer commentId;//评论编号
    private String content;//评论内容
    private String time;//评论时间
    private Integer commentUserId;//评论发布人
    private Integer replayId;//回复id
    private String userName;//评论人

    public Comment() {
    }

    public Comment(Integer commentId, String content, String time, Integer commentUserId, Integer replayId) {
        this.commentId = commentId;
        this.content = content;
        this.time = time;
        this.commentUserId = commentUserId;
        this.replayId = replayId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public Integer getCommentUserId() {
        return commentUserId;
    }

    public void setCommentUserId(Integer commentUserId) {
        this.commentUserId = commentUserId;
    }

    public Integer getReplayId() {
        return replayId;
    }

    public void setReplayId(Integer replayId) {
        this.replayId = replayId;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "commentId=" + commentId +
                ", content='" + content + '\'' +
                ", time='" + time + '\'' +
                ", commentUserId=" + commentUserId +
                ", replayId=" + replayId +
                '}';
    }
}
